<div class="modal fade in ip-box" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" id="edit">
        <div class="modal-dialog " role="document" style="margin: 254px auto;">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h4 class="modal-title" id="myModalLabel">授权范围管理 — 修改</h4>
                </div>
                <div class="modal-body">
                    <form name="editForm">

                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 control-label text-right">资源服务编码:</label>
                            <div class="col-xs-12 col-sm-9">
                                <input type="text" 
                                	   name="scopesCode" 
                                	   class="form-control" 
                                	   required
                                       ng-model="edit_scopesCode"
                                	   >
                                <label class="red required">*</label>
                                <div class="error" ng-show="editForm.scopesCode.$dirty &amp;&amp; editForm.scopesCode.$invalid">
                                    <small class="error" ng-show="editForm.scopesCode.$error.required">请输入资源服务编码</small>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 control-label text-right">资源服务名称:</label>
                            <div class="col-xs-12 col-sm-9">
                                <input type="text" 
                                       name="scopeName" 
                                       class="form-control" 
                                       required
                                       ng-model="edit_scopeName"
                                       >
                                <label class="red required">*</label>
                                <div class="error" ng-show="editForm.scopeName.$dirty &amp;&amp; editForm.scopeName.$invalid">
                                    <small class="error" ng-show="editForm.scopeName.$error.required">请输入资源服务名称</small>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 control-label text-right">资源服务URL:</label>
                            <div class="col-xs-12 col-sm-9">
                                <input type="text" 
                                       name="scopeUri" 
                                       class="form-control" 
                                       required
                                       ng-model="edit_scopeUri"
                                       >
                                <label class="red required">*</label>
                                <div class="error" ng-show="editForm.scopeUri.$dirty &amp;&amp; editForm.scopeUri.$invalid">
                                    <small class="error" ng-show="editForm.scopeUri.$error.required">请输入资源服务URL</small>
                                </div>
                            </div>
                        </div>
						
						<div class="form-group height-auto">
							
							<div class="form-group height-auto">
	                            <label class="col-xs-12 col-sm-3 control-label text-right">服务类型:</label>   
	                            <div class="one-line col-xs-12 col-sm-3">
	                                <select name="serviceType" 
                                            style="width:120px !important;"
                                            required 
                                            ng-options="obj.id as obj.name for obj in editServiceTypeSelect"
                                            ng-change="getDisplayName()"
                                            ng-model="edit_serviceType"
                                            >
	                                </select>
	                            </div>

	                            <label class="one-line col-xs-12 col-sm-3 control-label text-right">资源类型:</label>   
	                            <div class="col-xs-12 col-sm-3">
	                                <select name="scopeType" 
                                            required 
                                            ng-options="obj.id as obj.name for obj in editScopeTypeSelect"
                                            ng-model="edit_scopeType" 
                                            >
	                                </select>
	                            </div>
	                        </div>

						</div>

                        <div class="form-group height-auto">
                            <label class="col-xs-12 col-sm-3 control-label text-right">描述:</label>
                            <div class="col-xs-12 col-sm-9">
                                <textarea rows="5" 
                                		  type="text" 
                                		  name="description" 
                                		  class="form-control" 
                                          ng-model="edit_description"
                                		  >                                    
                                </textarea>
                                
                            </div>
                        </div>
                        
                    </form>

                    <div class="col-sm-12">
	                    <div class="modal-footer">
	                        <button type="button" 
                                    class="btn btn-primary" 
                                    data-dismiss="modal" 
                                    ng-disabled="editForm.$invalid" 
                                    ng-click="confirmEdit()" 
                                    >确定修改
                            </button>
	                    </div>
                    </div>

                </div>
            </div>
        </div>
    </div>